package com.creditcmsplt.adapter;


/**
 * oauth2核心配置类:授权服务器
 * @author 雷阳军
 *
 */
/*@Configuration
@EnableAuthorizationServer*/
public class AuthorizationServerConfig /*extends AuthorizationServerConfigurerAdapter*/ {

    /*@Autowired
    @Qualifier("authenticationManagerBean")
    private AuthenticationManager authenticationManager;

    @Override
    public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
        clients.inMemory()
            .withClient("client").secret("123456").scopes("read")
            .authorizedGrantTypes("authorization_code","password","client_credentials","implicit","refresh_token")//允许认证的类型,token 及密码模式等等
            .redirectUris("https://www.getpostman.com/oauth2/callback");//认证成功后的回调地址
    }

    @Override
    public void configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception {
        endpoints.authenticationManager(authenticationManager);
    }
*/
}
